package com.fling.objects;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.math.Vector2;
import com.fling.Locator;
import com.fling.entity.CollisionEntity;

public class Wall extends CollisionEntity {

	public static float SCALE=1F;
	private Sprite spriteEasy;
	private Sprite spriteHard;
	
	public Wall(Vector2 pos) {
		super(pos, TYPE.WALL, WALL_PATH, true, false, SCALE);
		spriteEasy=new Sprite(new Texture(Gdx.files.internal(WALL_EASY_PATH)));
		spriteHard=new Sprite(new Texture(Gdx.files.internal(WALL_PATH)));
	}

	@Override
	public void collide(CollisionEntity otherBody) {
		// ignore collisions

	}
	
	public void switchDifficulty(){
		if(Locator.difficulty==Locator.HARD){
			this.setSprite(spriteHard);
		} else {
			this.setSprite(spriteEasy);
		}
	}
}
